/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.skycloud.bts.webservice;

import com.skycloud.bts.service.TicketServiceRemote;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * REST Web Service
 *
 * @author HAINN
 */
@Path("test")
@Stateless
public class TestResource {

    @EJB
    TicketServiceRemote ticketServiceRemote;
    /**
     * Creates a new instance of TestResource
     */
    public TestResource() {
    }

    /**
     * Retrieves representation of an instance of com.skycloud.bts.webservice.TestResource
     * @return an instance of java.lang.String
     */
    @GET
    @Produces("application/json")
    public String getXml() {
       return ticketServiceRemote.testCount("AAAA: ");
    }

    /**
     * PUT method for updating or creating an instance of TestResource
     * @param content representation for the resource
     * @return an HTTP response with content of the updated or created resource.
     */
    @PUT
    @Produces("application/json")
    public void putXml(String content) {
    }
}
